﻿@model Kaqaz.Models.Account.LogOn

@{
    ViewBag.Title = "Log On";
}

<h2>@Resource.Logon</h2>
<p>
    @Html.Raw(string.Format(Resource.LoginMessage, Html.ActionLink(Resource.Register, "Register").ToHtmlString()))
</p>

@Html.ValidationSummary(true, Resource.UnsuccessfulLogin)

@using (Html.BeginForm()) {
    <div>
        <fieldset>
            <legend>@Resource.AccountInformation</legend>

            <div class="editor-label">
                @Html.LabelFor(m => m.UserName)
            </div>
            <div class="editor-field">
                @Html.TextBoxFor(m => m.UserName)
                @Html.ValidationMessageFor(m => m.UserName)
            </div>

            <div class="editor-label">
                @Html.LabelFor(m => m.Password)
            </div>
            <div class="editor-field">
                @Html.PasswordFor(m => m.Password)
                @Html.ValidationMessageFor(m => m.Password)
            </div>

            <div class="editor-label">
                @Html.CheckBoxFor(m => m.RememberMe)
                @Html.LabelFor(m => m.RememberMe)
            </div>

            <p>
                <input type="submit" value="@Resource.Logon" />
            </p>
        </fieldset>
    </div>
}
